<%
/*
CHANGE LOG:
080724-BD	Added CleanFileName
*/
// simplify undefined and null to blank and ensure code is a string
function Clean(val) {
	val = String(val);
	if((val.toLowerCase() == "undefined") || (val.toLowerCase() == "null")) return "";
	return val;
}

// Strips unallowed characters from the file name
function CleanFileName(fName) {
	fName = Clean(fName).replace(/\/|\\|\:|\*|\?|\"|\<|\>|\|/g, "");
	return fName;
}
%>